﻿/*----------------------------------------------------------------
//   Copyright (C) 2012 YMSOFT All rights reserved 
//
//   CLR版本:   2.0.50727.3634
//   Namespace: BP.BLL
//   FileName : B_Config
//   Description: 
// 
//   Created by YAOMING at 2012-10-24 23:41:18
//   http://www.loverer.com QQ:78867011
//
//   Modified: 
//   Modify description: 
//
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ART.Common;

namespace ART.BLL
{
    public class B_Config
    {
        private readonly static string configPath = Utils.GetMapPath("/config/Settings.config");

        /// <summary>
        /// 获取指定路径的值
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        public static string GetValue(string path)
        {
            return Configs.GetXmlNode(configPath, "configuration/" + path);
        }
        /// <summary>
        /// 设置指定路径的值
        /// </summary>
        /// <param name="path"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public static string SetValue(string path,string value)
        {
            return Configs.SetXmlNode(configPath, "configuration/" + path,value);
        }
    }
}
